#!/usr/bin/env python3
import os
import shutil

# 获取当前工作目录
current_dir = os.getcwd()

debugTargetPathMap = {
    "target/aarch64-linux-android/debug/librust_lib_demo.so": f"{current_dir}/libs/arm64-v8a/librust_lib_demo.so",
    "target/armv7-linux-androideabi/debug/librust_lib_demo.so": f"{current_dir}/libs/armeabi-v7a/librust_lib_demo.so",
    "target/x86_64-apple-darwin/debug/librust_lib_demo.dylib": f"{current_dir}/libs/x86_64/librust_lib_demo.dylib",
}

for src_path, dst_path in debugTargetPathMap.items():
    src_path = os.path.join(current_dir, src_path)
    dst_path = os.path.join(current_dir, dst_path)
    if not os.path.exists(dst_path):
        os.makedirs
    shutil.copy2(src_path, dst_path)
    print(f"Copied {src_path} to {dst_path}")